# data "local_file" "cert" {
#     filename = "${path.module}/${var.ssl_cert}"
# }
# data "local_file" "key" {
#     filename = "${path.module}/${var.ssl_key}"
# }
data "local_file" "cert" {
    filename = "${var.ssl_cert}"
}
data "local_file" "key" {
    filename = "${var.ssl_key}"
}
resource "alicloud_cas_certificate" "main" {
  name = var.ssl_name
  cert = data.local_file.cert.content
  key  = data.local_file.key.content
}